package cn.lhl01.sys.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HomeController {

	@PostMapping("/home")
	@PreAuthorize("hasAuthority('/home')")
	public String home() {
		return "hell home";
	}


}

